package com.terracloud.server.common.data;

import com.terracloud.server.common.data.id.CustomerId;
import com.terracloud.server.common.data.id.DeviceGroupId;
import com.terracloud.server.common.data.id.DeviceId;
import com.terracloud.server.common.data.id.TenantId;
import com.terracloud.server.common.data.validation.Length;
import com.terracloud.server.common.data.validation.NoXss;
import lombok.*;
import org.springframework.data.annotation.Transient;

import java.util.List;
import java.util.UUID;

/**
 *
 * @author chenhainan
 * @since 2025/10/11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DeviceGroup extends BaseData<DeviceGroupId> implements HasTenantId, HasName {


    private TenantId tenantId;

    @NoXss
    @Length(fieldName = "name")
    private String name;

    private String description;

    private Long deviceCount;

    private List<IdName> devices;

    public DeviceGroup() {
    }
}
